import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from "axios";
import filter from "@/assets/filter/filter";
axios.defaults.baseURL='http://localhost:8090/rapidDeliverySystem_java'
// axios.interceptors.request.use(function (config) {
//   let admin= JSON.parse(localStorage.getItem('admin'))
//   if(admin){
//     config.headers.Authorization=admin.name+","+admin.pass
//   }else{
//     config.headers.Authorization=","
//   }
//   return config;
// });
Vue.config.productionTip = false
Vue.prototype.$axios=axios
Vue.use(ElementUI)
for (const key in filter) {
  Vue.filter(key,filter[key]);
}
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
